package com.task.core.dto.request;

import java.util.Date;
import java.util.List;

import com.task.common.core.domain.BaseEntity;
import com.task.common.enums.QuestionInfoTypeEnum;

import lombok.Data;

/**
 * @author 迪迦.
 * @date 2025/2/11 10:33
 */
@Data
public class QuestionInfoRequestDTO extends BaseEntity{

  //修改时可能需要,先预留,暂时没用
  private String code;

  //操作的code,用于查找关联数据
  private String operationCode;

  //问题对应的模块类型 QuestionInfoTypeEnum
  private QuestionInfoTypeEnum questionType;

  //修改时需要
  private String dataCode;

  //展示的文字
  private String showContent;

  //提示语Code
  private String promptCode;

  //操作类型，如果是修改为0,删除为1
  private String operationType;


  //当前时间
  private Date now;

  //修改人
  private Long operationBy;

  public QuestionInfoRequestDTO() {
  }

  public QuestionInfoRequestDTO(String dataCode) {
    this.dataCode = dataCode;
  }

  public QuestionInfoRequestDTO(QuestionInfoTypeEnum questionType,String operationCode, String showContent) {
    this.questionType = questionType;
    this.operationCode = operationCode;
    this.showContent = showContent;
    this.now = new Date();
  }

  public QuestionInfoRequestDTO(QuestionInfoTypeEnum questionType,String operationCode, String showContent,String operationType) {
    this.questionType = questionType;
    this.operationCode = operationCode;
    this.operationType = operationType;
    this.now = new Date();
  }
  public QuestionInfoRequestDTO(QuestionInfoTypeEnum questionType,String operationCode, String showContent,String promptCode,String operationType) {
    this.questionType = questionType;
    this.operationCode = operationCode;
    this.promptCode = promptCode;
    this.operationType = operationType;
    this.now = new Date();
  }

  public QuestionInfoRequestDTO(QuestionInfoTypeEnum questionType,String dataCode, Long operationBy) {
    this.questionType = questionType;
    this.dataCode = dataCode;
    this.operationBy = operationBy;
    this.now = new Date();
  }
}
